u may modify the parameters (server, username, password etc) according to ur needs and use it in following way:
suppose u want to copy a folder named "xyz" in public_html from remote server to a folder "abc" on ur local server then
1. copy this code snippet (ofcourse after modifying with ur own parameters) in file say copy.php into ur local "abc" folder
2. call the script like


copy.php?src=xyz
